<extend name="Public:common"/>
<block name="content">
   <link rel="stylesheet" href="__PUBLIC__/Mobile/css/class/Classification.css"/>
 <!-- 分类选择 -->
<section>
    <!--内容-->
    <div class="clearfix">
        <!-- 左侧导航 -->
        <ul class="main-left-nav fl">
        	<if condition="!empty($parentData)">
        		<foreach name="parentData" key="key" item="value">
		            <li>
		                <span>{$value.class_name}</span>
		                <if condition="!empty($value['children'])">
				           <dl class="main-left-content fl clearfix active">
				           	 <foreach name="value['children']" key='key' item='children'>
			                    <dd class="fl">
			                        <a href="{:U('goods_goodslist', array('class_id'=> $children['id']))}">
			                            <img src="{$children.pic_url}" alt="{$children.class_name}">
			                            <p>{$children.class_name}</p>
			                        </a>
			                    </dd>
			                  </foreach>
				            </dl>
			            </if>
		            </li>
           		</foreach>
           	</if>
        </ul>
    </div>
</section>       

<script src="__PUBLIC__/Mobile/js/class/Classification.js"></script>
</block>